var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); var usat=new clsUsat(); usat.init(); function clsUsat(){ this.util=new clsUtil(); this.page=new clsPage(); this.cookie=new clsCookie(); this.init=fxInit; function fxInit(){ this.util.init(); this.page.init();} function clsUtil(){ this.init=fxInit; this.openBareWindow=fxOpenBareWindow; this.isEmpty=fxIsEmpty; function fxInit(){ String.prototype.trim=fxTrim;} function fxTrim(strInput){ var strResult=null; if(strInput==null) strInput=this; if(strInput){ strResult=new String(strInput); strResult=strResult.replace(/^\s+/,""); strResult=strResult.replace(/\s+$/,"");} return(strResult);} function fxOpenBareWindow(url,title,width,height){ window.open(url,title,"scrollbars=no,menubar=no,toolbar=no,status=no,top=0,left=0,screenx=0,screeny=0,width="+width+",height="+height+",resizable=no");} function fxIsEmpty(x){ blnIsEmpty=false; if((x==null)||(new String(x)=="undefined")||(x=="")){ blnIsEmpty=true;} return(blnIsEmpty);}} function clsPage(){ this.onLoadList=new Array(); this.jumpSelect=fxJumpSelect; this.onLoad=fxOnLoad; this.addLoadEvent=fxAddLoadEvent; this.init=fxInit; this.onResize=fxOnResize; this.writeObject=fxWriteObject; this.writeString=fxWriteString; this.insertTags=fxInsertTags; function fxInit(){ fxOnResize(true);} function fxOnResize(init){ if(init==true)with(navigator){ if((appName=="Netscape")&&(parseInt(appVersion)==4)){ document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=fxOnResize;}} else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH){ location.reload();}} function fxJumpSelect(objSelect){ var strLocation=objSelect.options[objSelect.selectedIndex].value; if(strLocation){ document.location=strLocation;} objSelect.selectedIndex=0;} function fxOnLoad(){ var fx; for(var i=0;i_version = 11;"); document.write("_version = 12;");} function MM_preloadImages(){ var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i0&&parent.frames.length){ d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i-1){ var endPos=cookieString.indexOf("&",startPos); if(endPos==-1)endPos=cookieString.length; newString=cookieString.substring(0,startPos)+paramName+"="+newParamValue+cookieString.substring(endPos,cookieString.length);} return newString;} function getCookieStringParamValue(string,paramName){ var startPos=string.indexOf(paramName+"="); var paramValue=""; if(startPos>-1){ startPos=startPos+paramName.length+1; var endPos=string.indexOf("&",startPos); if(endPos==-1)endPos=string.length; paramValue=string.substring(startPos,endPos);} return paramValue;} function writeOAC(cookieString){ var expireTime=new Date(); expireTime.setHours(23,59,59,999); usat.cookie.set("adCookie",cookieString,new Date(expireTime),"/",".usatoday.com");} function processOACValue(paramName,bornOnTime){ var timeSet=bornOnTime; var cookieValue=usat.cookie.get("adCookie"); var cookied=false; var paramValue=""; var allValues="popup1=&cokepopup=&sweeppopup=&sweepemailpopup=&sb_home=§ion_count=0§ion_intermediate=§ion_money=§ion_weather=§ion_life=§ion_tech=§ion_news=§ion_travel=§ion_sports="; var newCookieString=""; if(cookieValue!=null){ paramValue=getCookieStringParamValue(cookieValue,paramName);} var startPos=paramName.indexOf("section_"); if(startPos>-1){ if(cookieValue!=null){ var totalSectionCount=parseInt(getCookieStringParamValue(cookieValue,"section_count")); if((totalSectionCount<3)&&(paramValue=="")){ newCookieString=setCookieParamValueForCookieString(cookieValue,paramName,"1"); writeOAC(newCookieString); totalSectionCount=totalSectionCount+1; newCookieString=setCookieParamValueForCookieString(newCookieString,"section_count",totalSectionCount); writeOAC(newCookieString); cookied=true;}} else{ writeOAC(allValues); newCookieString=setCookieParamValueForCookieString(allValues,paramName,"1"); writeOAC(newCookieString); newCookieString=setCookieParamValueForCookieString(newCookieString,"section_count","1"); writeOAC(newCookieString); cookied=true;}} else if(paramName.indexOf("popup")>-1){ if(cookieValue!=null){ if(paramValue==""||paramValue==null){ newCookieString=setCookieParamValueForCookieString(cookieValue,paramName,timeSet); writeOAC(newCookieString); cookied=true;}} else{ writeOAC(allValues); newCookieString=setCookieParamValueForCookieString(allValues,paramName,timeSet); writeOAC(newCookieString); cookied=true;}} else{ if(cookieValue!=null){ if(paramValue==""||paramValue==null){ newCookieString=setCookieParamValueForCookieString(cookieValue,paramName,"1"); writeOAC(newCookieString); cookied=true;}} else{ writeOAC(allValues); newCookieString=setCookieParamValueForCookieString(allValues,paramName,"1"); writeOAC(newCookieString); cookied=true;}} return cookied;} function writeQQCookie(paramName){ var cookieValue=usat.cookie.get("qqCookie"); var paramValue=""; if(cookieValue!=null){ paramValue=getCookieStringParamValue(cookieValue,paramName);} if(cookieValue!=null){ if(paramValue==""||paramValue==null){ cookieValue=cookieValue+"&"+paramName+"="; newCookieString=setCookieParamValueForCookieString(cookieValue,paramName,"1"); usat.cookie.set("qqCookie",newCookieString,new Date("1/1/2010"),"/",".usatoday.com");}} else{ usat.cookie.set("qqCookie",paramName+"=1",new Date("1/1/2010"),"/",".usatoday.com");}} function readQQCookie(paramName){ var cookieValue=usat.cookie.get("qqCookie"); var cookied=true; var paramValue=""; if(cookieValue!=null){ paramValue=getCookieStringParamValue(cookieValue,paramName); if(paramValue==""||paramValue==null){ cookied=false;}} else{ cookied=false;} return cookied;} function usatAddAttribute(prefix,slotName,tagName){ var value; value=gTagAttrs[prefix+slotName]; if(null==value) value=gTagAttrs[slotName]; if(null !=value){ if(0==slotName.indexOf(prefix)&&(null==tagName)) tagName=slotName.substring(prefix.length); if(null==tagName) tagName=slotName; return tagName+'="'+value+'" ';} else return "";} function usatAddObjectAttr(slotName,tagName){ if(0==slotName.indexOf("emb#")) return ""; if(0==slotName.indexOf("obj#")&&(null==tagName)) tagName=slotName.substring(4); return usatAddAttribute("obj#",slotName,tagName);} function usatAddEmbedAttr(slotName,tagName){ if(0==slotName.indexOf("obj#")) return ""; if(0==slotName.indexOf("emb#")&&(null==tagName)) tagName=slotName.substring(4); return usatAddAttribute("emb#",slotName,tagName);} function usatAddObjectParam(slotName,generateXHTML){ var paramValue; var paramStr=""; var endTagChar=(generateXHTML)?' />':'>'; if(-1==slotName.indexOf("emb#")){ paramValue=gTagAttrs["obj#"+slotName]; if(null==paramValue) paramValue=gTagAttrs[slotName]; if(0==slotName.indexOf("obj#")) slotName=slotName.substring(4); if(null !=paramValue) paramStr=' ";} gTagAttrs=new Array(); gTagAttrs["src"]=args[0]; gTagAttrs["width"]=args[1]; gTagAttrs["height"]=args[2]; gTagAttrs["classid"]="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; gTagAttrs["pluginspage"]="https://web.archive.org/web/20081203145800/http://www.macromedia.com/go/getflashplayer/"; var activexVers=args[3] if((null==activexVers)||(""==activexVers)) activexVers="8,0,24,0"; gTagAttrs["codebase"]="https://web.archive.org/web/20081203145800/http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+activexVers; var attrName, attrValue; for(var ndx=4;ndx\n'+usatAddObjectParam("src",generateXHTML); var embedTag=' \n';} function niceDate(fullDate) { if(fullDate==""||!fullDate) { return " "; } try { var strNow=new Date(); var dateParts=fullDate.split(/[\/ :]/); var month=parseInt(dateParts[0])-1; var hr=dateParts[3]; if(dateParts[5]=='PM' || (dateParts[6] && dateParts[6]=='PM')) { if(hr!=12) { hr=parseInt(hr)+parseInt(12); } } else if(hr==12) { hr=parseInt(hr)-parseInt(12); } var strDate=new Date(dateParts[2],month,dateParts[1],hr,dateParts[4]); } catch(e) { return fullDate; } return dateDiff(strNow,strDate,fullDate); } function dateDiff(date1,date2,fullDate){ var niceDateStr=''; var diff=new Date(); var COMMENT = "the next line must be adjusted for DST: 5 for standard, 4 for DST"; var tzo=(date1.getTimezoneOffset()/60)-5; diff.setTime(Math.abs(date1.getTime()-(date2.getTime()-(tzo*60*60*1000)))); var timediff=diff.getTime(); var years=Math.floor(timediff/(1000*60*60*24*365)); timediff-=years*(1000*60*60*24*365); var days=Math.floor(timediff/(1000*60*60*24)); timediff-=days*(1000*60*60*24); var hours=Math.floor(timediff/(1000*60*60)); timediff-=hours*(1000*60*60); var mins=Math.floor(timediff/(1000*60)); timediff-=mins*(1000*60); var secs=Math.floor(timediff/1000); timediff-=secs*1000; // If older than 7 days, return the full date if(diff.getTime()>(7*24*60*60*1000)) { return fullDate; } if(years>0){ niceDateStr=years+"y"; if(days==0){ niceDateStr+=" ago";}else{ niceDateStr+=" "+days+"d ago";}}else if(days>0){ niceDateStr=days+"d"; if(hours==0||days>=7){ niceDateStr+=" ago";}else if(days<7){ niceDateStr+=" "+hours+"h ago";}}else if(hours>0){ niceDateStr=hours+"h"; if(mins==0){ niceDateStr+=" ago";}else{ niceDateStr+=" "+mins+"m ago";}}else if(mins>0){ niceDateStr=mins+"m ago";}else{ niceDateStr="<1m ago";} return niceDateStr;} function swapContent(oldHeader,newHeader){ var oldContent=document.getElementById(oldHeader).innerHTML; var newContent=document.getElementById(newHeader).innerHTML; document.getElementById(oldHeader).innerHTML=''; document.getElementById(newHeader).innerHTML=oldContent; document.getElementById(oldHeader).style.height='1px'; document.getElementById(oldHeader).style.overflow='hidden';} function uShowHide(elem){ if(document.getElementById(elem).style.display=='none'){ document.getElementById(elem).style.visibility='visible';}else{ document.getElementById(elem).style.visibility='hidden';}} } /* FILE ARCHIVED ON 14:58:00 Dec 03, 2008 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:11:13 May 05, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): capture_cache.get: 0.592 load_resource: 597.932 PetaboxLoader3.resolve: 475.861 PetaboxLoader3.datanode: 111.597 */